use std::collections::HashSet;

// let input_str: &str = "a,b,cd,b,e,e,d,a";
pub fn new_count_distinct(input_str: &str) -> usize {
    let mut mp = HashSet::new();
    for c in input_str.split(",") {
        mp.insert(c);
    }
    mp.len()
}
